-- GENERATED SPELL FOR [Rokdar the Sundered Lord] --


function spell0_18400(pUnit, Event) --@Knock Away,n/a--
pUnit:FullCastSpellOnTarget(31389,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18400', 542, 1)
end

function spell1_18400(pUnit, Event) --@War Stomp,Self--
pUnit:FullCastSpellOnTarget(16727,pUnit)
pUnit:RegisterEvent('Sorts_18400', 5272, 1)
end

function Sorts_18400(pUnit, Event)
local choix_sorts_18400 = math.random(0, 1)
if choix_sorts_18400 == 0 then
pUnit:RegisterEvent('spell0_18400', 1, 1)
end
if choix_sorts_18400 == 1 then
pUnit:RegisterEvent('spell1_18400', 1, 1)
end
end

function mob18400_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_18400', math.random(1500, 3000), 1)
end

function mob18400_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18400_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18400_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(18400, 1, 'mob18400_Action')
RegisterUnitEvent(18400, 2, 'mob18400_Leave')
RegisterUnitEvent(18400, 3, 'mob18400_Kill')
RegisterUnitEvent(18400, 4, 'mob18400_Die')
